import type { LoginParams } from '@/types/user'
import { request } from '@/utils/reuqest'


/**
 * @description: 登录
 * @param -  { username: string, password: string }
 * @returns - { token: string  }
*/
export const loginAPI = (data: LoginParams) => request<{ token: string }>('/park/login', 'post', data)
